package com.ben.upload.data;

public class FileResult extends BaseResult {

    private String url = "";
    private String md5 = "";
    private String fileName = "";
    private String newFileName = "";
    private String originalFilename = "";

    public FileResult(int code, String msg) {
        super(code, msg);
    }

    public FileResult(String url, String fileName, String newFileName, String originalFilename,String md5) {
        super(0, "操作成功");
        this.url = url;
        this.fileName = fileName;
        this.newFileName = newFileName;
        this.originalFilename = originalFilename;
        this.md5 = md5;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    public String getNewFileName() {
        return newFileName;
    }

    public void setNewFileName(String newFileName) {
        this.newFileName = newFileName;
    }

    public String getOriginalFilename() {
        return originalFilename;
    }

    public void setOriginalFilename(String originalFilename) {
        this.originalFilename = originalFilename;
    }

    public String getMd5() {
        return md5;
    }

    public void setMd5(String md5) {
        this.md5 = md5;
    }
}